﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace blacksoft.Models
{
    public class ChangePasswordModel
    {

        [Required]
        [StringLength(15)]
        [DataType(DataType.Password)]
        [RegularExpression(@"^[a-zA-Z0-9]*$", ErrorMessage = "Solo se permiten caracteres alfanuméricos")]
        [Display(Name = "Contraseña Actual")]
        public string ContraseñaAntigua { get; set; }
        [Required]
        [StringLength(15)]
        [DataType(DataType.Password)]
        [RegularExpression(@"^[a-zA-Z0-9]*$", ErrorMessage = "Solo se permiten caracteres alfanuméricos")]
        [Display(Name = "Nueva Contraseña")]
        public string ContraseñaNueva { get; set; }
        [Required]
        [StringLength(15)]
        [DataType(DataType.Password)]
        [RegularExpression(@"^[a-zA-Z0-9]*$", ErrorMessage = "Solo se permiten caracteres alfanuméricos")]
        [Display(Name = "Confirmar Contraseña")]
        [Compare("ContraseñaNueva", ErrorMessage = "Las Contraseñas no coinciden")]
        public string ContraseñaConfirmada { get; set; }



    }
}